package com.xyrl.project.common.store.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xyrl.project.common.base.entity.BaseEntity;
import com.xyrl.project.common.store.enu.StoreAttr;
import com.xyrl.project.common.store.enu.StoreStatus;
import com.xyrl.project.common.store.enu.StoreStatusNode;
import com.xyrl.project.common.store.enu.StoreType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


/**
* @className Store.java
* @company 重庆星纭融链科技公司
* @author 徐恩源
* @version 1.0
* @date 2019-12-30 10:32:48
* @Description 商户实体类
*/
@Data
@TableName("t_store")
@ApiModel(value="Store对象", description="商户")
public class Store extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商户名称")
    private String name;

    @ApiModelProperty(value = "商户类型(seller|批发商，buyer|进货商，all|批发商/进行商一体）")
    private StoreType storeType;

    @ApiModelProperty(value = "商户状态( create|新商户，follow|跟进中， wait|等待审核，success|申请成功,failure|申请失败)")
    private StoreStatus status;

    @ApiModelProperty(value = "状态节点")
    private StoreStatusNode statusNote;

    @ApiModelProperty(value = "客户经理id")
    private Long salesId;

    @ApiModelProperty(value = "主管理员id")
    private Long csrUserId;

    @ApiModelProperty(value = "商户头像")
    private String logo;

    @ApiModelProperty(value = "所属行业")
    private String industry;

    @ApiModelProperty(value = "所在省份编码")
    private String provinceCode;

    @ApiModelProperty(value = "所在省份名称")
    private String provinceName;

    @ApiModelProperty(value = "所在城市编码")
    private String cityCode;

    @ApiModelProperty(value = "所在城市名称")
    private String cityName;

    @ApiModelProperty(value = "所在区域编码")
    private String areaCode;

    @ApiModelProperty(value = "所在区域名称")
    private String areaName;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "经度")
    private BigDecimal lon;

    @ApiModelProperty(value = "纬度")
    private BigDecimal lat;

    @ApiModelProperty(value = "员工数量")
    private Integer staffNum;

    @ApiModelProperty(value = "商户面积")
    private String area;

    @ApiModelProperty(value = "商户属性(lease|租赁，own|自有)")
    private StoreAttr storeAttribute;

    @ApiModelProperty(value = "创建人")
    private Long createUserId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    private Long updateUserId;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "数据版本")
    private Integer version;


}
